<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of index
 *
 * @author Nailton
 */
if (isset($success)) {
    echo "<p>{$success}</p>";
}
?>

<fieldset>
    <legend>Listagem de Usuarios</legend>
    <table class="table">

        <tr>
            <td><b>Nome</b></td>
            <td><b>CPF</b></td>
            <td><b>Escolaridade</b></td>
            <td><b>Profissao</b></td>
            <td><b>Email</b></td>
            <td><b>Endereco</b></td>
            <td><b></b></td>
        </tr>

<?php
if ($resultUsuario) {
    foreach ($resultUsuario as $row) {
        ?>

                <tr>
                    <td><?php echo $row['nome'] ?></td>
                    <td><?php echo $row['cpf'] ?></td>
                    <td><?php echo $row['escolaridade'] ?></td>
                    <td><?php echo $row['profissao'] ?></td>
                    <td><?php echo $row['email'] ?></td>
                    <td><?php echo $row['endereco'] ?></td>
                </tr>
                <?php
            }
        }
        ?>
        <form action="<?php echo $this->here; ?>/login/logoff" name="FORMULARIO" method="POST">
            <input type="hidden" name="_method" value="POST" />
            <p class ="botoes umacoluna">
                <input type="submit" value="Logoff" />
                <input type="reset" value="Cancelar" />
                <br style="clear: left;" />
            </p>
        </form>
    </table>
</fieldset>

